package com.huike.report.service;


import com.huike.clues.domain.TbActivity;
import com.huike.clues.domain.TbClue;
import com.huike.clues.domain.vo.IndexStatisticsVo;
import com.huike.common.core.domain.entity.BusinessChangeStatistics;
import com.huike.contract.domain.TbContract;
import com.huike.report.domain.vo.*;

import java.util.List;
import java.util.Map;

public interface IReportService {


    /**
     * 客户统计报表
     * @param tbContract
     * @return
     */
    public  List<TbContract> contractReportList(TbContract tbContract);



    /**
     * 销售统计部门报表
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    public List<Map<String, Object>> deptStatisticsList(String beginCreateTime, String endCreateTime);

    /**
     * 销售统计渠道报表
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    public List<Map<String, Object>> channelStatisticsList(String beginCreateTime, String endCreateTime);
    /**
     * 销售统计归属人报表
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    public List<Map<String, Object>> ownerShipStatisticsList(String beginCreateTime, String endCreateTime);



    /**
     * 渠道统计
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    public List<Map<String, Object>> chanelStatistics(String beginCreateTime, String endCreateTime);


    /**
     * 活动统计
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    public List<Map<String, Object>> activityStatistics(String beginCreateTime, String endCreateTime);



    public List<TbClue> cluesStatisticsList(TbClue clue);

    /**
     * 活动渠道统计
     * @param activity
     * @return
     */
    public List<ActivityStatisticsVo> activityStatisticsList(TbActivity activity);



    public IndexVo getIndex(IndexStatisticsVo request);


    /**
     * 首页基本数据展示
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    IndexBaseInfoVO getBaseInfo(String beginCreateTime, String endCreateTime);

    /**
     * 获取今日简报数据
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    ToDayVo getTodayInfo(String beginCreateTime, String endCreateTime);

    /**
     * 获取待办数据
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    ToDoVo getToInfo(String beginCreateTime, String endCreateTime);

    /**
     * 每日新增线索折线图
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    EveryDayNewClueVo salesStatistics(String beginCreateTime, String endCreateTime);

    /**
     * 统计分析-客户统计-学科客户分布饼图
     * @param
     * @return
     */
    Map<String, Integer>[] subjectStatistics(String beginCreateTime, String endCreateTime);

    /**
     * 统计分析--线索统计--线索转化率漏斗图
     * @param beginCreateTime 开始时间
     * @param endCreateTime 结算时间
     */
    GetVulnerabilityMapVo getVulnerabilityMap(String beginCreateTime, String endCreateTime);

    /**
     * 首页--商机转化龙虎榜接口
     * @param beginCreateTime 开始时间
     * @param endCreateTime 结算时间
     */
    BusinessChangeStatistics[] businessChangeStatistics(String beginCreateTime, String endCreateTime);

    /**
     * 首页--线索转化龙虎榜接口
     * @param beginCreateTime 开始时间
     * @param endCreateTime 结算时间
     */
    BusinessChangeStatistics[] salesStatistic(String beginCreateTime, String endCreateTime);


}
